<%@ page import="com.oval.util.JspHelper" %>
<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ page language="java" %>
<%@ page import="java.util.*,com.oval.foundation.util.*" %>

<% String contentType = (String)request.getParameter("contentType"); %>
<html>
<head>
<title>e-manager</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="css/chinese/csscontent.css" type="text/css"> 
<script language="JavaScript" src="css/chinese/script.js">
</script>
<script>
<%@ include file="inc/ShowPopup.js" %>
<%@ include file="inc/TreePopup.js" %>
<% if(contentType != null)
   { %>
   function submitSearch()
   {
     document.contentForm.action="./consoleContent.jsp";
     document.contentForm.submit();
   }
  
   function submitUpload()
   {
     document.contentForm.encoding="multipart/form-data";
     document.contentForm.action="../updateConfig";
     document.contentForm.submit();
   }
   
   function testql(vtablename,qlname)
  {
     var remote = window.open("","remoteWindow");
      if (remote != null)
       remote.close();
     var link = "consoleContent.jsp?contentType=VirtualTableTest&VirtualTable="+vtablename+"&QLName="+qlname+"&order=changeQL";
      window.location.href=link;
}
<% } %>
</script>
</head> 
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
  <tr> 
    <td width="85%" valign="top"> 
      <table width="100%" border="0" height="100%" cellspacing="0" cellpadding="4">
        <tr> 
          <td valign="top">
          <% if(contentType != null)
             {
               //if(!contentType.equalsIgnoreCase("VirtualTableTest"))
              // {
               %>
            <FORM name="contentForm" method="POST">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td rowspan="3" bgcolor="A7A7A7" width="1"></td>
                <td bgcolor="A7A7A7" height="1"></td>
                <td rowspan="3" width="13"><img src="images/chinese/search_right.gif"></td>
              </tr>
              <tr> 
                <td height="29" bgcolor="ECECEC">
                  <div align="center">
                    <INPUT TYPE="hidden" NAME="contentType" value="<%=JspHelper.filterNull( contentType )%>">
                    <INPUT TYPE="text" NAME="searchParam" SIZE="20">
                    <INPUT TYPE="button" VALUE="Search" ONCLICK="submitSearch();" CLASS="bu">
                    <INPUT TYPE="file" NAME="<%=JspHelper.filterNull( contentType )%>">
                    <INPUT TYPE="button" VALUE="Upload" ONCLICK="submitUpload();" CLASS="bu">
                  </div>
                </td>
              </tr>
              <tr> 
                <td bgcolor="A7A7A7" height="1"></td>
              </tr>
            </table>
            </FORM>
          <%   //}
               String redir = "inc/" + contentType + "List.jsp";
               %>
              <jsp:include page="<%= redir %>" />
          <% } %>        
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>


